# -*- coding: utf-8 -*-  
"""  
@author     : Mengnf  
@github     : https://gitee.com/mengnf  
@software   : PyCharm   
@file       : manufacturers  
@create     : 2024-11-19 21:17  
@description：
"""

from rest_framework import serializers

from ic.models import Manufacturers


class ManufacturersSerializer(serializers.ModelSerializer):
    """
    制造商序列化器
    """
    create_datetime = serializers.DateTimeField(format='%Y-%m-%d %H:%M:%S', read_only=True)
    update_datetime = serializers.DateTimeField(format='%Y-%m-%d %H:%M:%S', read_only=True)

    class Meta:
        model = Manufacturers
        fields = '__all__'
